package com.syeet.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syeet.common.utils.PageUtils;
import com.syeet.gulimall.order.entity.OrderEntity;
import com.syeet.gulimall.order.vo.OrderConfirmVo;
import com.syeet.gulimall.order.vo.OrderSumbitVo;
import com.syeet.gulimall.order.vo.SubmitOrderRespVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author xhl
 * @email 119495@qq.com
 * @date 2022-04-30 13:36:40
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 订单结算页返回确认的数据,也就是去结算
     * @return
     */
    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    /**
     * 提交订单
     * @param vo
     * @return
     */
    SubmitOrderRespVo submitOrder(OrderSumbitVo vo);

}

